/**
 * 
 */
package com.worksmap.core.util;

import java.lang.reflect.Field;

/**
 * @author jack
 *
 */
public class ObjectUtil {
	
	/**
	 * 方法简介：获得类属性字符串
	 * return：
	 * jack
	 * 2013-12-19
	 */
	public static <T> String getClassFieldStr(Class<T> beanClass){
		Field[] fields = beanClass.getDeclaredFields();
		StringBuilder str = new StringBuilder();
		for(Field field: fields){
			str.append("," + field.getName());
		}
		String fieldStr = str.toString().replace(",serialVersionUID,", "");
		return fieldStr;
	}
	
}
